using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Web.Core;

public partial class AdminCP_ImageManager : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (Request.Params["location"].ToString() == "products")
        //    this.ImagesManager1.location = "~/Images/Products/";
        if (Request.Params["location"] != null)
        {
            string location = Request.Params["location"].ToString();
            switch (location)
            {
                case "products":
                    this.ImagesManager1.location = "~/Images/Products/";
                    break;
                case "categories":
                    this.ImagesManager1.location = "~/Images/Categories/";
                    break;
                case "advertisements":
                    this.ImagesManager1.location = "~/Images/Ads/";
                    break;
            }
        }
    }
}
